import 'package:get/get.dart';
import 'package:kq_flutter_core_widget/widgets/imageBox/kq_image_box.dart';
import 'package:kq_flutter_tv_widgets/pages/common/img_preview/view.dart';
import 'package:kq_flutter_tv_widgets_example/pages/demo/bread_crumbs_demo_page.dart';
import 'package:kq_flutter_tv_widgets_example/pages/demo/calendar_demo_page.dart';
import 'package:kq_flutter_tv_widgets_example/pages/demo/card_page.dart';
import 'package:kq_flutter_tv_widgets_example/pages/demo/chart/chart_demo.dart';
import 'package:kq_flutter_tv_widgets_example/pages/demo/chart/pie_chart_demo.dart';
import 'package:kq_flutter_tv_widgets_example/pages/demo/drawer_page.dart';
import 'package:kq_flutter_tv_widgets_example/pages/demo/kq_chart_pie_demo.dart';
import 'package:kq_flutter_tv_widgets_example/pages/demo/pull_down_menu_page.dart';
import 'package:kq_flutter_tv_widgets_example/pages/demo/signature_pad_demo.dart';
import 'package:kq_flutter_tv_widgets_example/pages/demo/swiper_demo_page.dart';
import 'package:kq_flutter_tv_widgets_example/pages/demo/table_widget_demo.dart';
import 'package:kq_flutter_tv_widgets_example/pages/demo/wrap_flow_page.dart';

import '../pages/demo/button_demo_page.dart';
import '../pages/demo/chart/line_chart_demo.dart';
import '../pages/demo/chart/pie_chart_3d_demo.dart';
import '../pages/demo/chart/radar_chart_demo.dart';
import '../pages/demo/custom_expand_view.dart';
import '../pages/demo/custom_view_page.dart';
import '../pages/demo/dialog_demo_page.dart';
import '../pages/demo/drag_grid_view_demo.dart';
import '../pages/demo/drag_list_view_demo.dart';
import '../pages/demo/drag_menu_demo.dart';
import '../pages/demo/expand_list_demo_page.dart';
import '../pages/demo/form_demo_page.dart';
import '../pages/demo/get_not_route_demo.dart';
import '../pages/demo/kq_chart_demo.dart';
import '../pages/demo/kq_selectable_grid_view_demo.dart';
import '../pages/demo/popup_window_demo.dart';
import '../pages/demo/section_grid_view_demo.dart';
import '../pages/demo/section_list_view.dart';
import '../pages/demo/tab_bar_demo.dart';
import '../pages/demo/terminal_nav_demo.dart';
import '../pages/demo/tips_demo_page.dart';

class RouteMap {
  /// 路由配置
  static List<GetPage> getPages = [
    GetPage(name: '/ButtonDemo', page: () => const ButtonDemoPage()),
    GetPage(name: '/FormDemo', page: () => const FormDemoPage()),
    GetPage(name: '/ExpandListDemo', page: () => const ExpandListDemoPage()),
    GetPage(name: '/DialogDemo', page: () => const DialogDemoPage()),
    GetPage(name: '/CustomViews', page: () => const CustomViewsPage()),
    GetPage(name: '/ImgPreview', page: () => const ImgPreviewPage()),
    GetPage(
        name: '/DragGridViewDemo', page: () => const DragGridViewDemoPage()),
    GetPage(name: '/DragDrawer', page: () => const DragDrawerDemo()),
    GetPage(
        name: '/DragListViewDemo', page: () => const DragListViewDemoPage()),
    GetPage(name: '/TabBarDemoPage', page: () => const TabBarDemoPage()),
    GetPage(
        name: '/SectionGridViewDemo', page: () => const SectionGridViewDemo()),
    GetPage(name: '/SectionListView', page: () => const SectionListView()),
    GetPage(name: '/WrapFlowPage', page: () => const WrapFlowPage()),
    GetPage(name: '/PullDownMenuPage', page: () => const KqPullDownMenuPage()),
    GetPage(name: '/WrapFlowPage', page: () => const WrapFlowPage()),
    GetPage(name: '/KqChartLineDemo', page: () => const KqChartLineDemo()),
    GetPage(name: '/KqChartPieDemo', page: () => const KqChartPieDemo()),
    GetPage(name: '/SignaturePadDemo', page: () => const SignaturePadDemo()),
    GetPage(name: '/KqTable', page: () => const TableDemoPage()),
    GetPage(name: '/KqCalendarPage', page: () => const KqCalendarPage()),
    GetPage(name: '/KqSwiper', page: () => const SwiperDemoPage()),
    GetPage(name: '/KqDrawerDemo', page: () => const KqDrawerDemo()),
    GetPage(
      name: '/KqCardPage',
      page: () => const KqCardPage(),
    ),
    GetPage(
        name: '/KqBreadCrumbsDemo', page: () => const BreadCrumbsDemoPage()),
    GetPage(name: '/CustomExpandView', page: () => const CustomExpandView()),
    GetPage(name: '/chartPage', page: () => const ChartPage()),
    GetPage(name: '/LineChartPage', page: () => const LineChartPage()),
    GetPage(name: '/chart/pieChart', page: () => const PieChartPage()),
    GetPage(name: '/chart/pieChart3D', page: () => const PieChart3DPage()),
    GetPage(name: '/chart/radarChart', page: () => const RadarChartPage()),
    GetPage(name: '/TipsDemoPage', page: () => const TipsDemoPage()),
    GetPage(
        name: '/KqSelectableGridViewDemo',
        page: () => const KqSelectableGridViewDemo()),
    GetPage(
        name: '/KqSelectableGridViewDemo',
        page: () => const KqSelectableGridViewDemo()),
    GetPage(name: '/TerminalNavDemo', page: () => const TerminalNavDemo()),
    GetPage(name: '/PopupWindowDemo', page: () => const PopupWindowDemo()),
    GetPage(name: '/GetNotRouteDemo', page: () => const GetNotRouteDemo()),
  ];

  /// 跳转按钮演示页面
  static pushButtonDemo() {
    Get.toNamed('/ButtonDemo');
  }

  /// 跳转表单演示页面
  static pushFormDemo() {
    Get.toNamed('/FormDemo');
  }

  /// 跳转折叠列表演示页面
  static pushExpandListDemo() {
    Get.toNamed('/ExpandListDemo');
  }

  /// 跳转对话框演示页面
  static pushDialogDemo() {
    Get.toNamed('/DialogDemo');
  }

  // 跳转wrapFlow演示页面
  static pushWrapFlowDemo() {
    Get.toNamed('/WrapFlowPage');
  }

  // 跳转下拉菜单演示页面
  static pushPullDownDemo() {
    Get.toNamed('/PullDownMenuPage');
  }

  /// 跳转自定义控件演示页面
  static pushCustomViewsPage() {
    Get.toNamed("/CustomViews");
  }

  /// 跳转自定义控件演示页面2
  static pushCustomExpandPage() {
    Get.toNamed("/CustomExpandView");
  }

  /// 跳转自定义控件演示页面
  static pushSignaturePadDemo() {
    Get.toNamed("/SignaturePadDemo");
  }

  /// 图片预览
  static imagePreview(List<ImageUrl> urls, int position) {
    Get.toNamed('/ImgPreview',
        arguments: urls, parameters: {'position': position.toString()});
  }

  /// 日历
  static pushCalendarPageDemo() {
    Get.toNamed("/KqCalendarPage");
  }

  /// 拖拽排序演示demo-网格
  static pushDragGridViewDemo() {
    Get.toNamed('/DragGridViewDemo');
  }

  /// 拖拽排序演示demo-列表
  static pushDragListViewDemoPage() {
    Get.toNamed('/DragListViewDemo');
  }

  /// 拖拽排序演示demo-仿小诸葛设备详情
  static pushDragDrawerDemo() {
    Get.toNamed('/DragDrawer');
  }

  /// TabBar演示demo
  static pushTabBarDemo() {
    Get.toNamed('/TabBarDemoPage');
  }

  static pusSectionGridViewDemo() {
    Get.toNamed('/SectionGridViewDemo');
  }

  ///折线图曲线图测试
  static pushKqChartLineDemo() {
    Get.toNamed('/KqChartLineDemo');
  }

  ///扇形图
  static pushKqChartPieDemo() {
    Get.toNamed('/KqChartPieDemo');
  }

  ///  跳转表格界面
  static pushTableDemo() {
    Get.toNamed('/KqTable');
  }

  /// 跳转面包屑界面
  static pushBreadCrumbsDemo() {
    Get.toNamed("/KqBreadCrumbsDemo");
  }

  ///  跳转表格界面
  static pushSwiperDemo() {
    Get.toNamed('/KqSwiper');
  }

  ///  跳转表格界面
  static pusSectionListView() {
    Get.toNamed('/SectionListView');
  }

  ///  跳转到图表界面
  static pushChartPage() {
    Get.toNamed('/chartPage');
  }

  /// 跳转折线图演示界面
  static goLineChartPage() {
    Get.toNamed('/LineChartPage');
  }

  ///  跳转到饼状图界面
  static pushPieChartPage() {
    Get.toNamed('/chart/pieChart');
  }

  ///  跳转到3D饼状图界面
  static pushPieChart3DPage() {
    Get.toNamed('/chart/pieChart3D');
  }

  ///  跳转到雷达图
  static pushRadarChartPage() {
    Get.toNamed('/chart/radarChart');
  }

  ///  跳转到气泡
  static pushTipsDemoPage() {
    Get.toNamed('/TipsDemoPage');
  }

  /// 跳转选择控件
  static pushKqSelectableGridViewDemo() {
    Get.toNamed('/KqSelectableGridViewDemo');
  }

  /// 侧滑抽屉
  static pushDrawerPage() {
    Get.toNamed('/KqDrawerDemo');
  }

  /// 卡片
  static pushCardPage() {
    Get.toNamed('/KqCardPage');
  }

  /// 导航动画控件
  static pushTerminalNavDemo() {
    Get.toNamed('/TerminalNavDemo');
  }

  /// popupWindow
  static pushPopupWindowDemo(){
    Get.toNamed('/PopupWindowDemo');
  }

  /// GetNotRoute
  static pushGetNotRouteDemo(){
    Get.toNamed('/GetNotRouteDemo');
  }
}
